


import { defineStore } from 'pinia'

// 第一个参数必须是全局唯一，可以是哟
export const useStore = defineStore('main', {
  state: () => ({
    counter: 66
  }),
  actions: {
    updateCounter(counter: number) {
      this.counter = counter
    }
  }
})